package com.fanghuaiming.fescar.order.spi.account;

import com.fanghuaiming.common.model.account.Account;
import com.fanghuaiming.fescar.order.spi.account.fallback.FescarAccountFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/****
 * @description: 账户微服务SPI
 * @version:1.0.0
 * @author fanghuaiming
 * @data Created in 2020/11/27 下午5:19
 *
 */
@FeignClient(name = "xa-fescar-micro-cloud-account",fallback = FescarAccountFeignClientFallBack.class)
public interface FescarAccountFeignClient {

    /**
     * @Description: 扣减账户
     *
     * @param:
     * @return:
     * @auther: fanghuaiming
     * @date: 2020/11/27 下午5:20
     * @version:1.0.0
     */
    @RequestMapping(value = "/account/reduceAccount",method = RequestMethod.POST)
    String reduceAccount(@RequestBody Account account) ;

}
